﻿using DDD.Core.CQRS;
using DDD.Core.Result;
using DDD.Domain.Enums;
using DDD.Domain.ValueObjects;

namespace DDD.Application.Commands.UserCommand.UpdateUserById;

/// <summary>
/// 根据用户Id更新用户
/// </summary>
public record UpdateUserByIdCommand : ICommand<ApiResult<bool>, bool>
{
    public Guid Id { get; init; }

    public string UserName { get; init; }

    public string Phone { get; init; }

    public string Email { get; init; }

    public string Password { get; init; }

    public SexEnum Sex { get; init; }

    public Address Address { get; init; }

}
